package com.jt.service;

import com.jt.mapper.UserMapper;
import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

//service 的实现
@Service
public class UserServiceImpl implements UserService{


    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> getAll() {
     List<User> list=new ArrayList<>();
        list=userMapper.selectList(null);
        return list;
    }
}
